#include "StdMysql.h"
#include <iostream>

int main()
{
    MYSQLPOOL->SetParams(10, "192.168.87.130", "root", "123456", "student254");
#if 0
    stdMysql mysql;
    if (mysql.Connect("192.168.87.130", "root", "123456", "student254") == false)
    {
        return -1;
    }
    StrArray sqlVec;
    sqlVec.push_back("update student set sex = '男' where id = 1");
    sqlVec.push_back("update student set name = 'zhangsan' where id = 2");
    mysql.ExecuteTransaction(sqlVec);
#endif
    std::cout << "11111111\n";

    std::vector<StrArray> arr = MYSQLPOOL->GetMysql()->GetTableInfo("select * from student");
    for (auto &strArr : arr)
    {
        for (std::string str : strArr)
        {
            std::cout << str << " ";
        }
        std::cout << std::endl;
    }

}
